package com.lbw.service.impl;

import com.lbw.entity.WrongEntity;
import com.lbw.mapper.WrongEntityMapper;
import com.lbw.service.WrongEntityService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author lbw
 * @since 2020-09-13
 */
@Service
public class WrongEntityServiceImpl extends ServiceImpl<WrongEntityMapper, WrongEntity> implements WrongEntityService {

    @Resource
    private WrongEntityMapper wrongEntityMapper;

    /**
     * 查询出本学生的错题
     * @param stuId 学生id
     * @param keyWord 搜索关键字
     * @return 错题集合
     */
    @Override
    public List<WrongEntity> selectWrongByStu(String stuId, String keyWord) {

        return wrongEntityMapper.selectWrongByStu(stuId,keyWord);
    }
}
